package com.diy.sigmund.diycommon.middleware.tlog;

import cn.hutool.core.util.IdUtil;
import com.yomahub.tlog.id.TLogIdGenerator;

/**
 * @author ylm-sigmund
 * @since 2022/4/12 14:20
 */
public class CustomTLogIdGenerator extends TLogIdGenerator {

    @Override
    public String generateTraceId() {
        // return String.valueOf(System.nanoTime());
        return String.valueOf(IdUtil.getSnowflake().nextId());
        // return new TLogDefaultIdGenerator().generateTraceId();
    }
}
